<?php

/**需要验证登录token的路由 start  **/          //    用户端
Route::group(['middleware' => ['api_auth:api']], function () {


//发现模块相关接口
Route::post('use-discover-store', ['as' => 'use_discover_store', 'uses' => 'DiscoverController@store']);  //添加发布朋友圈信息【ok】
Route::post('use-discover-zan', ['as' => 'use_discover_zan', 'uses' => 'DiscoverController@zan']);  //朋友圈、评论点赞和取消点赞【ok】
Route::delete('use-discover-apprise_delete', ['as' => 'use_discover_apprise_delete', 'uses' => 'DiscoverController@apprise_delete']);  //评论删除【ok】
Route::post('use-discover-apprise_store', ['as' => 'use_discover_apprise_store', 'uses' => 'DiscoverController@apprise_store']);  //添加朋友圈评论数据【ok】
Route::get('use-discover-my_info', ['as' => 'use_discover_my_info', 'uses' => 'DiscoverController@my_info']);  //发现-》我的
Route::get('use-discover-my_apprise', ['as' => 'use_discover_my_apprise', 'uses' => 'DiscoverController@my_apprise']);  //发现-》我的->我的评论
Route::get('use-discover-my_zan', ['as' => 'use_discover_my_zan', 'uses' => 'DiscoverController@my_zan']);  //发现-》我的->我的点赞
Route::get('use-discover-my_list', ['as' => 'use_discover_my_list', 'uses' => 'DiscoverController@my_list']);  //发现-》我的->我的发布
Route::get('use-discover-delete', ['as' => 'use_discover_delete', 'uses' => 'DiscoverController@delete']);  //发现-》我的->我的发布-》删除


//收货地址模块相关接口
Route::post('use-address-store', ['as' => 'use_address_store', 'uses' => 'AddressController@store']);  //添加收货地址【ok】
Route::get('use-address-list', ['as' => 'use_address_list', 'uses' => 'AddressController@list']);  //获取用户收货地址【ok】
Route::delete('use-address-delete', ['as' => 'use_address_delete', 'uses' => 'AddressController@delete']);  //删除收货地址【ok】
Route::get('use-address-info', ['as' => 'use_address_info', 'uses' => 'AddressController@info']);  //获取指定的收货地址【ok】
Route::post('use-address-update', ['as' => 'use_address_update', 'uses' => 'AddressController@update']);  //更新收货地址【ok】
Route::get('use-address-defaule', ['as' => 'use_address_defaule', 'uses' => 'AddressController@get_defaule_address']);//获取用户的默认地址

//积分明细
Route::get('use-user-integral_detail', ['as' => 'use_user_integral_detail', 'uses' => 'UserController@integral_detail']);  //用户积分明细【ok】


//个人中心=》设置模块
Route::post('use-feedback-store', ['as' => 'use_feedback_store', 'uses' => 'FeedbackController@store']);  //添加意见反馈【ok】



Route::get('use-feedback-collect', ['as' => 'use_feedback_collect', 'uses' => 'FeedbackController@collect']);  //收藏列表【ok】
Route::post('use-feedback-create_collect', ['as' => 'use_feedback_create_collect', 'uses' => 'FeedbackController@create_collect']);  //点击收藏功能【ok】
Route::delete('use-feedback-del_collect', ['as' => 'use_feedback_del_collect', 'uses' => 'FeedbackController@del_collect']);  //删除收藏【ok】



//优惠券
Route::get('use-coupon-list', ['as' => 'use_coupon_list', 'uses' => 'CouponController@list']);  //优惠券列表【ok】
Route::get('use-coupon-detail', ['as' => 'use_coupon_detail', 'uses' => 'CouponController@detail']);  //优惠券详情【ok】
Route::get('use-my-coupon-to-goods', ['as' => 'use-my_coupon_to_goods', 'uses' => 'CouponController@my_coupon_to_goods']);  //下订单时获取有效的优惠券【ok】
Route::get('use-my-coupon-to-shop', ['as' => 'use-my_coupon_to_shop', 'uses' => 'CouponController@my_coupon_to_shop']);  //获取当前门店下所有优惠券【ok】
Route::post('use-coupon-to-shop-store', ['as' => 'use-coupon_to_shop_store', 'uses' => 'CouponController@coupon_to_shop_store']);  //商品详情页面领取优惠券【ok】


Route::get('use-user-get_viplevel', ['as' => 'use_user_get_viplevel', 'uses' => 'UserController@get_viplevel']);  //获取vip会员【ok】

Route::post('send_phone_code', ['as' => 'send_phone_code', 'uses' => 'UserController@send_phone_code']); //发送手机短信验证码
Route::post('use-user-update_phone', ['as' => 'use_user_update_phone', 'uses' => 'UserController@update_phone']); //修改手机号码
Route::post('use-user-update-info', ['as' => 'use_user_update_info', 'uses' => 'UserController@update_info']);  //修改用户信息
Route::get('get-user-detail', ['as' => 'get_user_detail', 'uses' => 'UserController@user_detail']);//获取用户的基本信息


//11-15

//添加保养记录
Route::post('use-user-store_upkeep', ['as' => 'use_user_store_upkeep', 'uses' => 'UpKeepController@store_upkeep']); //添加保养记录【ok】
Route::get('use-user-list_upkeep', ['as' => 'use_user_list_upkeep', 'uses' => 'UpKeepController@list_upkeep']); //保养记录列表【ok】
Route::get('use-user-detail_upkeep', ['as' => 'use_user_detail_upkeep', 'uses' => 'UpKeepController@detail_upkeep']); //指定保养记录详情【ok】
Route::post('use-user-update_upkeep', ['as' => 'use_user_update_upkeep', 'uses' => 'UpKeepController@update_upkeep']); //编辑保养记录【ok】
Route::get('use-user-upkeep_types', ['as' => 'use_user_upkeep_types', 'uses' => 'UpKeepController@upkeep_types']); //获取保养项目列表【ok】


Route::get('use-user-imputed_price', ['as' => 'use_user_imputed_price', 'uses' => 'PublicController@order_imputed_price']); //计算价格【ok】

//发票服务模块
Route::post('use-user-store-invoice', ['as' => 'use_user_store_invoice', 'uses' => 'InvoiceController@store_invoice']); //添加发票信息【ok】
Route::get('use-user-invoice-info', ['as' => 'use_user_invoice_info', 'uses' => 'InvoiceController@invoice_info']); //获取发票信息【ok】
Route::post('use-user-apply-invoice', ['as' => 'use_user_apply_invoice', 'uses' => 'InvoiceController@apply_invoice']); //申请发票信息
Route::get('use-user-invoice-order', ['as' => 'use_user_invoice_order', 'uses' => 'InvoiceController@invoice_order']); //获取需要打印发票的订单
Route::get('api-user-apply-list', ['as' => 'api_user_apply_list', 'uses' => 'InvoiceController@apply_list']); //发票申请列表


//评论模块
    Route::post('use-apprise-create', ['as' => 'use_apprise_create', 'uses' => 'FeedbackController@apprise_create']);  //添加评论信息(单挑)
    Route::post('use-apprise-create-more', ['as' => 'use_apprise_create_more', 'uses' => 'FeedbackController@apprise_create_more']);  //添加评论信息（多条）
    Route::get('use-apprise-to-goods', ['as' => 'use_apprise_to_goods', 'uses' => 'FeedbackController@apprise_to_goods']);  //指定商品的评论列表
//    Route::get('api-get-shop-apprise', ['as' => 'use_get_shop_apprise', 'uses' => 'FeedbackController@get_shop_apprise']);  //获取门店的所有评论

});
Route::get('api-get-shop-apprise', ['as' => 'use_get_shop_apprise', 'uses' => 'FeedbackController@get_shop_apprise']);  //获取门店的所有评论


Route::get('use-discover-index', ['as' => 'use_discover_index', 'uses' => 'DiscoverController@index']);  //获取发布朋友圈信息【ok】
Route::get('use-discover-detail', ['as' => 'use_discover_detail', 'uses' => 'DiscoverController@detail']);  //获取指定的朋友圈详细数据【ok】
//Route::get('use-discover-apprise_change', ['as' => 'use_discover_apprise_change', 'uses' => 'DiscoverController@apprise_change']);  //修改朋友圈评论阅读类型+给朋友圈添加阅读量【暂废】
Route::get('use-discover-apprise-increase_num', ['as' => 'use_discover_apprise_increase_num', 'uses' => 'DiscoverController@increase_num']);  //朋友圈添加阅读量
Route::get('use-discover-apprise_list', ['as' => 'use_discover_apprise_list', 'uses' => 'DiscoverController@apprise_list']);  //获取指定的朋友圈的评论数据



////个人中心=》设置模块
Route::get('use-feedback-get-list', ['as' => 'use_feedback_get_list', 'uses' => 'FeedbackController@get_list']);  //获取协议列表数据
Route::get('api-vip-protocol', ['as' => 'api_vip_protocol', 'uses' => 'FeedbackController@protocol_vip']);   //获取道路救援服务协议

Route::get('use-feedback-protocol_list', ['as' => 'use_feedback_protocol_list', 'uses' => 'FeedbackController@protocol_list']);  //用户协议【ok】
Route::get('use-feedback-protocol_detail', ['as' => 'use_feedback_protocol_detail', 'uses' => 'FeedbackController@protocol_detail']);  //用户协议详情【ok】
Route::get('use-feedback-protocol_policy', ['as' => 'use_feedback_protocol_policy', 'uses' => 'FeedbackController@protocol_policy']);  //隐私政策【ok】
Route::get('use-feedback-about', ['as' => 'use_feedback_about', 'uses' => 'FeedbackController@about']);  //关于信达【ok】
Route::get('use-feedback-join', ['as' => 'use_coupon_join', 'uses' => 'FeedbackController@join']);  //门店加盟【ok】
Route::get('use-feedback-invite', ['as' => 'use_coupon_invite', 'uses' => 'FeedbackController@invite']);  //邀请有礼【ok】
Route::get('use-user-invite-list', ['as' => 'use_user_invite_list', 'uses' => 'FeedbackController@invite_list']);  //邀请有礼【ok】
Route::get('use-feedback-road_rescue', ['as' => 'use_feedback_road_rescue', 'uses' => 'FeedbackController@road_rescue']);  //道路救援【ok】
Route::post('use-add-message', ['as' => 'use_add_message', 'uses' => 'FeedbackController@add_message']);  //添加系统消息
Route::get('use-get-message', ['as' => 'use_get_message', 'uses' => 'FeedbackController@get_message']);  //获取指定用户的系统消息
Route::post('use-change-message', ['as' => 'use_change_message', 'uses' => 'FeedbackController@change_message']);  //修改消息阅读状态
Route::get('use-count-message', ['as' => 'use_count_message', 'uses' => 'FeedbackController@count_message']);  //修改消息阅读状态


//活动模块
Route::get('use-activity-index', ['as' => 'use_activity_index', 'uses' => 'ActivityController@index']);  //获取所有有效的活动数据【ok】
Route::get('use-activity-shop-list', ['as' => 'use_activity_shop_list', 'uses' => 'ActivityController@shop_list']);  //获取指定活动的所有商品列表【ok】


//201912009
Route::get('use-user-viplist', ['as' => 'use_user_viplist', 'uses' => 'UserController@user_viplist']);  //vip会员列表（验证my）
Route::get('use-activity-banner', ['as' => 'use_activity_banner', 'uses' => 'ActivityController@activity_banner']);  //主页活动banner图
Route::get('use-get-banner', ['as' => 'use_get_banner', 'uses' => 'ActivityController@banner']);  //主页活动banner图

Route::post('text', ['as' => 'text', 'uses' => 'TextController@text']);

Route::get('get-address_list', ['as' => 'get_address_list', 'uses' => 'AddressController@get_address_list']);//获取省市区


//评论模块
Route::get('use-apprise-list', ['as' => 'use_apprise_list', 'uses' => 'FeedbackController@get_apprise_list']);  //评论列表



//交通 违章查询
//Route::get('admin-traffic-select', ['as' => 'admin_traffic_select', 'uses' => 'TrafficController@traffic_select']);//
//Route::post('api-traffic-store', ['as' => 'api_traffic_store', 'uses' => 'TrafficController@traffic_store']);//  查询违章信息
Route::post('api-traffic-store', ['as' => 'api_traffic_store', 'uses' => 'TrafficController@traffic_store_total']);//  查询违章信息

//Route::get('admin-traffic-entrust', ['as' => 'admin_traffic_entrust', 'uses' => 'TrafficController@traffic_entrust']);//  查询违章信息
Route::post('api-entrust-store', ['as' => 'api_entrust_store', 'uses' => 'TrafficController@entrust_store']);//  违章代办
Route::post('api-entrust-list', ['as' => 'api_entrust_list', 'uses' => 'TrafficController@entrust_list']);//  违章代办
Route::get('api-entrust-carorg', ['as' => 'api_entrust_carorg', 'uses' => 'TrafficController@entrust_carorg']);//  获取交管局数据


Route::get('api-gift-regist', ['as' => 'api_gift_regist', 'uses' => 'FeedbackController@gift_regist']);  //获取注册礼包信息

Route::get('api-send-gift-regist', ['as' => 'api_send_gift_regist', 'uses' => 'FeedbackController@send_gift_regist']);  //发放注册礼包
Route::get('api-send-gift-invite', ['as' => 'api_send_gift_invite', 'uses' => 'FeedbackController@send_gift_invite']);  //发放邀请礼包
Route::get('api-send-gift-old', ['as' => 'api_send_gift_old', 'uses' => 'FeedbackController@send_gift_old']);  //发放老用户礼包
Route::get('api-send-upgrade-material-benefits', ['as' => 'api_send_upgrade_material_benefits', 'uses' => 'FeedbackController@send_upgrade_material_benefits']);  //用户升级发放等级礼包
Route::post('api-user-integral-change', ['as' => 'api_user_integral_change', 'uses' => 'FeedbackController@user_integral_change']);  //用户添加或扣除积分
Route::post('api-order-settlement-amount', ['as' => 'api_order_settlement_amount', 'uses' => 'FeedbackController@order_settlement_amount']);  //订单结算优惠券的补贴金额


//融云
Route::get('rong-getToken', ['as' => 'rong_getToken', 'uses' => 'RongController@getToken']);
Route::get('rong-userRefresh', ['as' => 'rong_userRefresh', 'uses' => 'RongController@userRefresh']);
Route::post('rong-message-push', ['as' => 'message_push', 'uses' => 'RongController@messagePush']);
Route::post('rong-online', ['as' => 'online', 'uses' => 'RongController@online']);
Route::post('rong-push', ['as' => 'push', 'uses' => 'RongController@push']);
Route::post('rong-messageHistory', ['as' => 'messageHistory', 'uses' => 'RongController@messageHistory']);


Route::get('get-user-info', ['as' => 'get_user_info', 'uses' => 'UserController@user_info']);//融云id获取指定商户的基本信息
Route::get('get-user-rong-cloud-id', ['as' => 'get_user_rong_cloud_id', 'uses' => 'UserController@get_rong_cloud_id']);//根据商户id获取用户的rong_cloud_id


//道路救援
Route::get('api-road-rescue-list', ['as' => 'api_road_rescue_list', 'uses' => 'RoadRescueController@road_rescue_list']);   //获取道路救援服务列表
Route::get('api-road-rescue-shop', ['as' => 'api_road_rescue_shop', 'uses' => 'RoadRescueController@road_rescue_shop']);   //获取道路救援机构列表
Route::post('api-road-rescue-order', ['as' => 'api_road_rescue_order', 'uses' => 'RoadRescueController@road_rescue_order']);   //生成订单列表
Route::post('api-road-rescue-pay-order', ['as' => 'api_road_rescue_pay_order', 'uses' => 'RoadRescueController@pay_order']);   //支付订单
Route::get('api-road-rescue-get-price', ['as' => 'api_road_rescue_get-price', 'uses' => 'RoadRescueController@road_rescue_get_price']);   //重新获取价格
Route::get('api-road-rescue-get-order', ['as' => 'api_road_rescue_get_order', 'uses' => 'RoadRescueController@road_rescue_get_order']);   //获取用户的订单信息
Route::post('api-road-rescue-refund', ['as' => 'api_road_rescue_refund', 'uses' => 'RoadRescueController@road_rescue_refund']);   //道路救援退款
Route::get('api-road-rescue-order-detail', ['as' => 'api_road_rescue_order_detail', 'uses' => 'RoadRescueController@order_detail']);   //道路救援订单信息
Route::get('api-road-rescue-check-order-status', ['as' => 'api_road_rescue_check-order-status', 'uses' => 'RoadRescueController@check_order_status']);   //道路救援订单信息



Route::get('api-road-rescue-refund_list', ['as' => 'api_road_rescue_refund_list', 'uses' => 'RoadRescueController@road_rescue_refund_list']);   //获取道路救援退款原因列表
Route::post('api-road-rescue-delete', ['as' => 'api_road_rescue_delete', 'uses' => 'RoadRescueController@delete']);   //取消订单
Route::post('api-road-rescue-accomplish', ['as' => 'api_road_rescue_accomplish', 'uses' => 'RoadRescueController@accomplish']);   //完成订单
Route::get('api-road-rescue-order-list', ['as' => 'api_road_rescue_order_list', 'uses' => 'RoadRescueController@order_list']);   //订单列表
Route::delete('api-road-rescue-order-del', ['as' => 'api_road_rescue_order_del', 'uses' => 'RoadRescueController@order_del']);  //删除订单
Route::get('api-road-rescue-protocol', ['as' => 'api_road_rescue_protocol', 'uses' => 'RoadRescueController@protocol']);   //获取道路救援服务协议


//极光推送
Route::post('api-jpush-push', ['as' => 'api_jpush_push', 'uses' => 'JpushController@pushNotify']);   //极光推送
Route::get('api-news', ['as' => 'api_news', 'uses' => 'H5Controller@news']);

Route::post('api-sync-jpush-reg_id', ['as' => 'api_sync_jpush_reg_id', 'uses' => 'UserController@sync_jpush_reg_id']); //用户登录同步极光id

Route::post('api-jpush-push-one', ['as' => 'api_jpush_push_one', 'uses' => 'JpushController@pushNotify_one']);   //极光推送指定用户
Route::post('text', ['as' => 'text', 'uses' => 'JpushController@text']);   //极光推送

Route::post('api-user-jpush-set', ['as' => 'api_user_jpush_set', 'uses' => 'UserController@user_jpush_set']);   //用户设置是否接收推送
Route::get('api-get-jpush-set', ['as' => 'api_get_jpush_set', 'uses' => 'UserController@get_jpush_set']);   //获取用户设置是否接收推送信息
Route::get('api-goods_is_del', ['as' => 'goods_is_del', 'uses' => 'ActivityController@goods_is_del']);   //获取商品是否绑定活动
Route::get('api-order_auth', ['as' => 'order_auth', 'uses' => 'RoadRescueController@order_auth_refund']);   //超时自动退款

